package com.sc.nft.entity.vo.secondEquityProp;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.compress.utils.Lists;

import java.math.BigDecimal;
import java.util.List;

@Data
public class SecondEquityPropCreateOrderVO {

    @ApiModelProperty("总支付金额")
    private String realAmount;

    @ApiModelProperty("权益道具id")
    private Long equityPropsId;

    @ApiModelProperty("订单id集合")
    private List<Long> orderIds ;


    @ApiModelProperty("过期时间戳")
    private Long expirationTimeStamp;

    @ApiModelProperty("当前时间戳")
    private Long nowTimeStamp;

    public void setMoney(BigDecimal realAmount) {
        this.realAmount = realAmount.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }
}
